#ifndef PRESSUREBUTTONOBJECT_H_
#define PRESSUREBUTTONOBJECT_H_
#include "ConstrainedObject.h"
#include "Dictionary.h"

class PressureButtonObject : public ConstrainedObject
{
	protected:
	bool offRight;
	bool isSticky;
	float springConstant;
	float dampingConstant;
	bool isActive;
	bool isSkirted;
	Vector2D * rightSkirtVertex;
	Vector2D * leftSkirtVertex;
	Vector2D * rightSkirtTextureVertex;
	Vector2D * leftSkirtTextureVertex;
	
	Vector2D rightSkirtPosition;
	Vector2D leftSkirtPosition;
	Vector2D rightSkirtTexturePosition;
	Vector2D leftSkirtTexturePosition;
	
	public:
	
	PressureButtonObject(char * name, TextureManager * textureManager, Dictionary * gameState,
					Vector2D position,
					Vector2D * vertices,
					int numVertices,
					float mass,
					bool isGrabbable,
					Vector2D movementAxis,
					Vector2D movementEndpoints,
					bool offRight,
					bool sticky,
					float springConstant,
					char * textureName,
					Vector2D * textureVertices);
	~PressureButtonObject();
	virtual bool PreDrawEntryPoint();
	virtual bool PreThinkEntryPoint(double elapsedTime);
};
#endif /*PRESSUREBUTTONOBJECT_H_*/
